package com.admin.dao

import com.data.annotation.NoargAnnotation
import com.data.annotation.OpenAnnotation
import com.data.bean.Theme
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Repository

/**
 * 主题审核操作
 */
@Repository
@OpenAnnotation
@NoargAnnotation
interface ThemeExamineDao {
    fun listExamineThemeDao(): List<Theme>
    fun passExamineThemeDao(@Param("tid") tid: String, @Param("state") state: String): Int
    fun useThemeDao(@Param("tid") tid: String, @Param("state") state: String): Int
    fun listThemeDao(): List<Theme>
    fun nopassExamineThemeDao(@Param("tid") tid: String, @Param("id") id: String, @Param("content") content: String): Int
    fun lookThemeDao(tid: String): Theme
    fun deleteThemeDao(id: String): Boolean
}